import { myFetch } from './myFetch';




// 登录
// userId, userPass
export const postLogin = (params) => myFetch(`/artwork_sys/admin_login/`, params, 'POST')


// 修改密码 
export const modifyPwd = params => myFetch('/change_pass', params, 'POST')


// 添加
export const add = params => myFetch('/artwork_sys/admin/artwork', params, 'POST')

// 获取
export const get = params => myFetch('/artwork_sys/artwork/all',params)

// 删除
export const del = params => myFetch(`/artwork_sys/admin/artwork/del`,params, 'POST')


// 获取详情

export const getDetail = artworkId => myFetch(`/artwork_sys/admin/artwork/`,{artworkId}, 'GET')


// update
export const update = params => myFetch('/artwork_sys/admin/artwork/update', params, 'POST')
